/**
 * Created by Dalyn on 2017/4/06.
 */
import Relay from "react-relay";

export default class TitleMessageMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { queryMessagesForSix }`;
    }

    getVariables() { 
        return {
            argsInput: {
              enId: this.props.enId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on queryMessagesForSixPayload {
            queryMessagesForSix {
                errorCode
                value
                totalResult
                id
                messageAll{
                  msgCreateDate
                  yiDetail
                  msgDetails
                  userId
                  companyJiaId
                  actionStatus
                  companyYiId
                  msgType
                  companyName
                  orderId
                  enId
                  mid
                  orderStatus
                  operator
                  jiaDetail
                  msgStatus
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on queryMessagesForSixPayload {
                    queryMessagesForSix {
                        errorCode
                        value
                        totalResult
                        id
                        messageAll{
                          msgCreateDate
                          yiDetail
                          msgDetails
                          userId
                          companyJiaId
                          actionStatus
                          companyYiId
                          msgType
                          companyName
                          orderId
                          enId
                          mid
                          orderStatus
                          operator
                          jiaDetail
                          msgStatus
                        }
                    }
                }
            `]
        }];
    }

}
